<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLuckMoneyTimeRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('luck_money_time_rules', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('rule_id')->comment('主规则ID');

            $table->integer('start')->comment('开始次数');
            $table->integer('end')->comment('结束次数');
            $table->integer('lower')->comment('下限金额（分）');
            $table->integer('upper')->comment('上限金额（分）');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('luck_money_time_rules');
    }
}
